import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        stateitem: null,
        videoId: null,
        active: 2,
        productId: null
    },
    getters: {},
    mutations: {

        updataItem(state, bannerdata) {
            state.stateitem = bannerdata.stateitem
        },
        getIdVideo(state, playId) {
            state.videoId = playId.id
        },
        updateActive(state, upActive) {

            state.active = upActive.active
        },
        upDataProduct(state, upProduct) {
            state.productId = upProduct.id
        }
    },
    actions: {},
    modules: {}
})